package com.aaa.three.mapper;

import com.aaa.three.pojo.domain.News;
import com.aaa.three.pojo.query.NewsQuery;
import com.aaa.three.pojo.vo.NewsVO;

import java.util.List;

/**
 * @Description:
 * @Author: whf
 * @Date: 2022/2/14 16:20
 */
public interface NewsMapper {

    List<News> listNews(NewsQuery newsQuery);

    Long queryNewsTotal(NewsQuery newsQuery);

    int addNews(NewsVO newsVO);

    int updateNews(NewsVO newsVO);

    int deleteNews(Integer id);

    NewsVO getNewsById(Integer id);

    News updateQueryNews(Integer id);

    int passCondition(Integer id);

    int failCondition(NewsVO newsVO);

}
